package cn.doctorpda.meeting.okhttp.callback;

import com.google.gson.Gson;

import cn.doctorpda.meeting.bean.Msg;
import okhttp3.Response;

/**
 * Created by huangjinlong on 2016/5/13.
 */
public abstract class ResultCallback extends Callback<Msg>{
    @Override
    public Msg parseNetworkResponse(Response response) throws Exception {
        String string = response.body().toString();
        Msg msg = new Gson().fromJson(string, Msg.class);
        return msg;
    }
}
